600 |
I am using Layout property to sort multiple columns at once. The problem is that all items get expanded. How do I prevent that
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("P1") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column.PartialCheck = true; exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("P2") as exontrol.EXTREELib.Column); var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.PartialCheck = true; var_Column1.FormatColumn = "1 index ``"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child A"); var_Items.InsertItem(h,null,"Child B"); var_Items.InsertItem(h,null,"Child A"); var_Items.InsertItem(h,null,"Child B"); var_Items.AddItem("Root"); var_Items.AddItem("Root"); extree1.SingleSort = false; extree1.Layout = "multiplesort=\"C0:1 C1:2\";collapse=\"\""; extree1.EndUpdate(); |
599 |
How can I get ride / hide the image being dragged by OLE Drag and Drop
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events. extree1.OLEDropMode = exontrol.EXTREELib.exOLEDropModeEnum.exOLEDropManual; extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exDragDropAfter,Color.FromArgb(255,255,255)); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("Default"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); |
598 |
How can I export checked items only
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("C1") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); (var_Columns.Add("C2") as exontrol.EXTREELib.Column).FormatColumn = "1 index `A-Z`"; (var_Columns.Add("C3") as exontrol.EXTREELib.Column).FormatColumn = "100 index ``"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.set_CellState(var_Items.AddItem("Item 2"),0,1); var_Items.set_CellState(var_Items.AddItem("Item 3"),0,1); extree1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Checked Items Only:" ); System.Diagnostics.Debug.Print( extree1.Export("","chk").ToString() ); |
597 |
How can I export a hidden column
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("C1"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("C2") as exontrol.EXTREELib.Column); var_Column.FormatColumn = "1 index `A-Z`"; var_Column.Visible = false; exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("C3") as exontrol.EXTREELib.Column); var_Column1.FormatColumn = "100 index ``"; var_Column1.Visible = false; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); extree1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Hidden Columns (1,2):" ); System.Diagnostics.Debug.Print( extree1.Export("","|1,2").ToString() ); |
596 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 3)
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionAny; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exSolidLine; extree1.Indent = 16; extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column.FormatColumn = "((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` : (=:0 mid (1 + 1 + =:1) ) + `)` ) + ` ` + value"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); int hChild = var_Items.InsertItem(h,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); var_Items.set_ExpandItem(0,true); h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); hChild = var_Items.InsertItem(h,null,"Child"); var_Items.set_CellState(hChild,0,1); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); extree1.EndUpdate(); |
595 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 2)
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.GridLineColor = Color.FromArgb(190,190,190); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionAny; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exSolidLine; extree1.Indent = 16; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Default"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingRight,4); var_Column.AllowSizing = false; var_Column.Width = 36; var_Column.Position = 0; var_Column.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =" + ":1) ) "; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); int hChild = var_Items.InsertItem(h,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); var_Items.set_ExpandItem(0,true); h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); hChild = var_Items.InsertItem(h,null,"Child"); var_Items.set_CellState(hChild,0,1); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); extree1.EndUpdate(); |
594 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 1)
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionAny; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exSolidLine; extree1.Indent = 16; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Default"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingRight,4); var_Column.Alignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment; var_Column.AllowSizing = false; var_Column.Width = 24; var_Column.Position = 0; var_Column.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) "; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); int hChild = var_Items.InsertItem(h,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); var_Items.set_ExpandItem(0,true); h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child"); hChild = var_Items.InsertItem(h,null,"Child"); var_Items.set_CellState(hChild,0,1); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(hChild,null,"Child"); var_Items.InsertItem(h,null,"Child"); extree1.EndUpdate(); |
593 |
Is it possible to have a different alignment for parts of the cell's caption
extree1.BeginUpdate(); extree1.TreeColumnIndex = -1; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Default") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellHAlignment(var_Items.AddItem("all-left"),0,exontrol.EXTREELib.AlignmentEnum.LeftAlignment); var_Items.set_CellHAlignment(var_Items.AddItem("all-center"),0,exontrol.EXTREELib.AlignmentEnum.CenterAlignment); var_Items.set_CellHAlignment(var_Items.AddItem("all-right"),0,exontrol.EXTREELib.AlignmentEnum.RightAlignment); int h = var_Items.AddItem("left<c>center<r>right"); var_Items.set_CellCaptionFormat(h,0,exontrol.EXTREELib.CaptionFormatEnum.exHTML); extree1.EndUpdate(); |
592 |
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
extree1.BeginUpdate(); exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("MultipleLine") as exontrol.EXTREELib.Column); var_Column.Width = 32; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exColumnResizeContiguously,true); exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("SingleLine") as exontrol.EXTREELib.Column); var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,false); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1,"This is a bit of long text that should break the line"); extree1.EndUpdate(); |
591 |
How do I sort the index column as numeric
// AddItem event - Occurs after a new Item has been inserted to Items collection. private void extree1_AddItem(object sender,int Item) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellData(Item,1,var_Items.get_ItemToIndex(Item)); } //this.extree1.AddItem += new exontrol.EXTREELib.exg2antt.AddItemEventHandler(this.extree1_AddItem); extree1.BeginUpdate(); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines; extree1.ColumnAutoResize = true; extree1.ShowFocusRect = false; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Next") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingLeft,4); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exHeaderPaddingLeft,4); exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("Index") as exontrol.EXTREELib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)"; var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column1.SortType = exontrol.EXTREELib.SortTypeEnum.SortUserData; var_Column1.Position = 0; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); var_Items.AddItem("Item 6"); var_Items.AddItem("Item 7"); var_Items.AddItem("Item 8"); var_Items.AddItem("Item 9"); var_Items.AddItem("Item 10"); extree1.EndUpdate(); |
590 |
How can I put icons/images into buttons
extree1.BeginUpdate(); extree1.ColumnAutoResize = true; extree1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("C+B") as exontrol.EXTREELib.Column); var_Column.AllowSizing = false; var_Column.Width = 48; var_Column.FormatColumn = "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `"; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasButton,true); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellButtonAutoWidth,true); extree1.Columns.Add(""); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exVLines; extree1.DefaultItemHeight = 20; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); extree1.EndUpdate(); |
589 |
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column
// CellButtonClick event - Fired after the user clicks on the cell of button type. private void extree1_CellButtonClick(object sender,int Item,int ColIndex) { System.Diagnostics.Debug.Print( "CellButtonClick" ); System.Diagnostics.Debug.Print( Item.ToString() ); } //this.extree1.CellButtonClick += new exontrol.EXTREELib.exg2antt.CellButtonClickEventHandler(this.extree1_CellButtonClick); // CellStateChanged event - Fired after cell's state has been changed. private void extree1_CellStateChanged(object sender,int Item,int ColIndex) { System.Diagnostics.Debug.Print( "CellStateChanged" ); System.Diagnostics.Debug.Print( Item.ToString() ); } //this.extree1.CellStateChanged += new exontrol.EXTREELib.exg2antt.CellStateChangedEventHandler(this.extree1_CellStateChanged); extree1.BeginUpdate(); extree1.ColumnAutoResize = true; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("") as exontrol.EXTREELib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Column.FormatColumn = "1 index ``"; exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column); var_Column1.AllowSizing = false; var_Column1.Width = 48; var_Column1.FormatColumn = "` `"; var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasButton,true); var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellButtonAutoWidth,true); extree1.Columns.Add(""); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); var_Items.AddItem(""); extree1.EndUpdate(); |
588 |
Does filtering work with umlauts / accents characters
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Names") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exPattern; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Mantel"); var_Items.AddItem("Mechanik"); var_Items.AddItem("Motor"); var_Items.AddItem("Murks"); var_Items.AddItem("Märchen"); var_Items.AddItem("Möhren"); var_Items.AddItem("Mühle"); var_Items.AddItem("Sérigraphie"); extree1.Columns[0].Filter = "*ä*"; extree1.ApplyFilter(); extree1.EndUpdate(); |
587 |
The Items.FirstVisibleItem property is read-only. How can I change the first visible item
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; extree1.ColumnAutoResize = false; extree1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\Access\\sample.mdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); extree1.DataSource = (rs as ADODB.Recordset); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Pos") as exontrol.EXTREELib.Column); var_Column.Position = 0; var_Column.FormatColumn = "0 index ``"; var_Column.Width = 32; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellBackColor,15790320); extree1.set_ScrollPos(true,13); extree1.EndUpdate(); |
586 |
How FullPath method works
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("C1"); extree1.Columns.Add("C2"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.set_CellCaption(h,1,"A"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,"B"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,"C"); var_Items.set_ExpandItem(h,true); extree1.SearchColumnIndex = 1; System.Diagnostics.Debug.Print( extree1.SearchColumnIndex.ToString() ); System.Diagnostics.Debug.Print( extree1.Items.get_FullPath([2]) ); extree1.SearchColumnIndex = 0; System.Diagnostics.Debug.Print( extree1.SearchColumnIndex.ToString() ); System.Diagnostics.Debug.Print( extree1.Items.get_FullPath([2]) ); extree1.EndUpdate(); |
585 |
How can I filter for multiple captions on a single column, using OR clause
extree1.BeginUpdate(); extree1.ColumnAutoResize = true; extree1.ContinueColumnScroll = false; extree1.MarkSearchColumn = true; extree1.SearchColumnIndex = 1; extree1.FilterBarPromptVisible = true; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("Name") as exontrol.EXTREELib.Column).Width = 96; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Title") as exontrol.EXTREELib.Column); var_Column.Width = 96; var_Columns.Add("City"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h0 = var_Items.AddItem("Nancy Davolio"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Andrew Fuller"); var_Items.set_CellCaption(h0,1,"Vice President, Sales"); var_Items.set_CellCaption(h0,2,"Tacoma"); var_Items.set_SelectItem(h0,true); h0 = var_Items.AddItem("Janet Leverling"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Kirkland"); h0 = var_Items.AddItem("Margaret Peacock"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Redmond"); h0 = var_Items.AddItem("Steven Buchanan"); var_Items.set_CellCaption(h0,1,"Sales Manager"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Michael Suyama"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Robert King"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Laura Callahan"); var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Anne Dodsworth"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); extree1.FilterBarPromptColumns = "1"; extree1.FilterBarPromptPattern = "Vice Inside"; extree1.FilterBarPromptType = exontrol.EXTREELib.FilterPromptEnum.exFilterPromptContainsAny; extree1.EndUpdate(); |
584 |
How can I filter for multiple captions on a single column, using AND clause
extree1.BeginUpdate(); extree1.ColumnAutoResize = true; extree1.ContinueColumnScroll = false; extree1.MarkSearchColumn = true; extree1.SearchColumnIndex = 1; extree1.FilterBarPromptVisible = true; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("Name") as exontrol.EXTREELib.Column).Width = 96; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Title") as exontrol.EXTREELib.Column); var_Column.Width = 96; var_Columns.Add("City"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h0 = var_Items.AddItem("Nancy Davolio"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Andrew Fuller"); var_Items.set_CellCaption(h0,1,"Vice President, Sales"); var_Items.set_CellCaption(h0,2,"Tacoma"); var_Items.set_SelectItem(h0,true); h0 = var_Items.AddItem("Janet Leverling"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Kirkland"); h0 = var_Items.AddItem("Margaret Peacock"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Redmond"); h0 = var_Items.AddItem("Steven Buchanan"); var_Items.set_CellCaption(h0,1,"Sales Manager"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Michael Suyama"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Robert King"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Laura Callahan"); var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Anne Dodsworth"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); extree1.FilterBarPromptColumns = "1"; extree1.FilterBarPromptPattern = "Vice Sales"; extree1.FilterBarPromptType = exontrol.EXTREELib.FilterPromptEnum.exFilterPromptContainsAll; extree1.EndUpdate(); |
583 |
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
extree1.BeginUpdate(); extree1.ColumnAutoResize = true; extree1.ContinueColumnScroll = false; extree1.MarkSearchColumn = false; extree1.SearchColumnIndex = 1; extree1.FilterBarHeight = 0; extree1.FilterBarPromptVisible = true; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("Name") as exontrol.EXTREELib.Column).Width = 96; (var_Columns.Add("Title") as exontrol.EXTREELib.Column).Width = 96; var_Columns.Add("City"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h0 = var_Items.AddItem("Nancy Davolio"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Andrew Fuller"); var_Items.set_CellCaption(h0,1,"Vice President, Sales"); var_Items.set_CellCaption(h0,2,"Tacoma"); var_Items.set_SelectItem(h0,true); h0 = var_Items.AddItem("Janet Leverling"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Kirkland"); h0 = var_Items.AddItem("Margaret Peacock"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"Redmond"); h0 = var_Items.AddItem("Steven Buchanan"); var_Items.set_CellCaption(h0,1,"Sales Manager"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Michael Suyama"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Robert King"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); h0 = var_Items.AddItem("Laura Callahan"); var_Items.set_CellCaption(h0,1,"Inside Sales Coordinator"); var_Items.set_CellCaption(h0,2,"Seattle"); h0 = var_Items.AddItem("Anne Dodsworth"); var_Items.set_CellCaption(h0,1,"Sales Representative"); var_Items.set_CellCaption(h0,2,"London"); extree1.FilterBarPromptPattern = "London"; extree1.EndUpdate(); |
582 |
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)
// AddItem event - Occurs after a new Item has been inserted to Items collection. private void extree1_AddItem(object sender,int Item) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.SetParent(Item,var_Items.get_FindItem(var_Items.get_CellCaption(Item,"ReportsTo"),"EmployeeID",null)); } //this.extree1.AddItem += new exontrol.EXTREELib.exg2antt.AddItemEventHandler(this.extree1_AddItem); extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.ColumnAutoResize = false; extree1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("SELECT * FROM Employees ORDER BY ReportsTo","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\Access\\sample.mdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); extree1.DataSource = (rs as ADODB.Recordset); extree1.Items.set_ExpandItem(0,true); extree1.EndUpdate(); |
581 |
Is there any option to control where I can drop the items when using the AutoDrag property
// AllowAutoDrag event - Occurs when the user drags the item between InsertA and InsertB as child of NewParent. private void extree1_AllowAutoDrag(object sender,int Item,int NewParent,int InsertA,int InsertB,ref bool Cancel) { exontrol.EXTREELib.Items var_Items = extree1.Items; System.Diagnostics.Debug.Print( "NewParent" ); System.Diagnostics.Debug.Print( var_Items.get_CellCaption(NewParent,0).ToString() ); System.Diagnostics.Debug.Print( "After" ); System.Diagnostics.Debug.Print( var_Items.get_CellCaption(InsertA,0).ToString() ); System.Diagnostics.Debug.Print( "Before" ); System.Diagnostics.Debug.Print( var_Items.get_CellCaption(InsertB,0).ToString() ); Cancel = true; } //this.extree1.AllowAutoDrag += new exontrol.EXTREELib.exg2antt.AllowAutoDragEventHandler(this.extree1_AllowAutoDrag); extree1.BeginUpdate(); extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionAny; extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exNoLinesAtRoot; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exThinLine; extree1.ShowFocusRect = false; extree1.Columns.Add("Task"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_ItemDivider(h,0); var_Items.set_ItemBold(h,true); int h1 = var_Items.InsertItem(h,null,"Task 1"); int h2 = var_Items.InsertItem(h,null,"Task 2"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Group 2"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); extree1.EndUpdate(); |
580 |
The FindPath is not case sensitive. How can I make it work case sensitive
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("Default"); extree1.ASCIIUpper = ""; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("L:"); var_Items.InsertItem(h,null,"test"); var_Items.InsertItem(h,null,"Test"); var_Items.InsertItem(h,null,"TEST"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.get_FindPath("L:\\TEST"),true); extree1.EndUpdate(); |
579 |
How do I enable / display a tooltip while user selects new items from the drop down filter panel
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Items") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowExclude | exontrol.EXTREELib.FilterListEnum.exEnableToolTip | exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); exontrol.EXTREELib.Column var_Column1 = extree1.Columns[0]; var_Column1.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilterExclude | exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column1.Filter = "Item 1|Item 4"; extree1.ApplyFilter(); extree1.EndUpdate(); |
578 |
How can I align captions of items with checkbox, with items with no checkbox
extree1.BeginUpdate(); extree1.Columns.Add("Default"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellImages(var_Items.AddItem(0),0,"1"); var_Items.set_CellHasCheckBox(var_Items.AddItem(1),0,true); var_Items.set_CellImages(var_Items.AddItem(2),0,"1"); extree1.EndUpdate(); |
577 |
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
// MouseDown event - Occurs when the user presses a mouse button. private void extree1_MouseDownEvent(object sender,short Button,short Shift,int X,int Y) { // Items.EnsureVisibleItem(ItemFromPoint(-1,-1,c,hit)) } //this.extree1.MouseDownEvent += new exontrol.EXTREELib.exg2antt.MouseDownEventHandler(this.extree1_MouseDownEvent); extree1.BeginUpdate(); extree1.TreeColumnIndex = -1; extree1.SelForeColor = extree1.ForeColor; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Buttons") as exontrol.EXTREELib.Column); var_Column.Alignment = exontrol.EXTREELib.AlignmentEnum.CenterAlignment; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasButton,true); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Button A"); var_Items.AddItem("Button B"); var_Items.AddItem("Button C"); extree1.EndUpdate(); |
576 |
Does the title of the cell's tooltip supports HTML format
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("") as exontrol.EXTREELib.Column); var_Column.Caption = ""; var_Column.HTMLCaption = "Column"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit" + "le centered with a different color."); extree1.EndUpdate(); |
575 |
How do I specify a different title for the cell's tooltip
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("") as exontrol.EXTREELib.Column); var_Column.Caption = "This is the title"; var_Column.HTMLCaption = "Column"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"This is bit of text that's shown when the user hovers the cell."); extree1.EndUpdate(); |
574 |
The cell's tooltip displays the column's caption in its title. How can I get ride of that
extree1.BeginUpdate(); exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("tooltip w/h caption"); var_Items.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title."); var_Items.set_CellCaption(h,1,"tooltip no caption"); var_Items.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title."); exontrol.EXTREELib.Column var_Column = extree1.Columns["C2"]; var_Column.HTMLCaption = var_Column.Caption; var_Column.Caption = ""; extree1.EndUpdate(); |
573 |
How can I programmatically show the column's filter
// RClick event - Fired when right mouse button is clicked private void extree1_RClick(object sender) { int i = extree1.get_ItemFromPoint(-1,-1,c,hit); extree1.Columns[c].ShowFilter("-1,-1,128,128"); } //this.extree1.RClick += new exontrol.EXTREELib.exg2antt.RClickEventHandler(this.extree1_RClick); extree1.BeginUpdate(); extree1.ShowFocusRect = false; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Items ") as exontrol.EXTREELib.Column); var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowExclude | exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); extree1.EndUpdate(); |
572 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)
// ColumnClick event - Fired after the user clicks on column's header. private void extree1_ColumnClick(object sender,exontrol.EXTREELib.Column Column) { // Column.SortOrder = 1 extree1.SortOnClick = exontrol.EXTREELib.SortOnClickEnum.exDefaultSort; extree1.Columns["Sort"].SortOrder = exontrol.EXTREELib.SortOrderEnum.SortAscending; extree1.SortOnClick = exontrol.EXTREELib.SortOnClickEnum.exUserSort; } //this.extree1.ColumnClick += new exontrol.EXTREELib.exg2antt.ColumnClickEventHandler(this.extree1_ColumnClick); extree1.BeginUpdate(); extree1.MarkSearchColumn = false; extree1.SortOnClick = exontrol.EXTREELib.SortOnClickEnum.exUserSort; extree1.Columns.Add("Items"); (extree1.Columns.Add("Sort") as exontrol.EXTREELib.Column).Visible = false; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item 1 (3)"),1,3); var_Items.set_CellCaption(var_Items.AddItem("Item 2 (1)"),1,1); var_Items.set_CellCaption(var_Items.AddItem("Item 3 (2)"),1,2); extree1.EndUpdate(); |
571 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)
// ColumnClick event - Fired after the user clicks on column's header. private void extree1_ColumnClick(object sender,exontrol.EXTREELib.Column Column) { // Column.SortOrder = 1 extree1.Items.SortChildren(0,"Sort",true); } //this.extree1.ColumnClick += new exontrol.EXTREELib.exg2antt.ColumnClickEventHandler(this.extree1_ColumnClick); extree1.BeginUpdate(); extree1.MarkSearchColumn = false; extree1.SortOnClick = exontrol.EXTREELib.SortOnClickEnum.exUserSort; extree1.Columns.Add("Items"); (extree1.Columns.Add("Sort") as exontrol.EXTREELib.Column).Visible = false; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item 1 (3)"),1,3); var_Items.set_CellCaption(var_Items.AddItem("Item 2 (1)"),1,1); var_Items.set_CellCaption(var_Items.AddItem("Item 3 (2)"),1,2); extree1.EndUpdate(); |
570 |
I have a 3 level hierarchy in the treeview, and I want to create a filter that only shows the items in the 2nd level of the hierarchy, is this possible
extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.MarkSearchColumn = false; extree1.Columns.Add("Items"); (extree1.Columns.Add("Level") as exontrol.EXTREELib.Column).Visible = false; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Parent"); var_Items.set_CellCaption(h,1,0); int hChild = var_Items.InsertItem(h,null,"Child 1.1"); var_Items.set_CellCaption(hChild,1,1); int hSubChild = var_Items.InsertItem(hChild,null,"SubChild A"); var_Items.set_CellCaption(hSubChild,1,2); hChild = var_Items.InsertItem(h,null,"Child 1.2"); var_Items.set_CellCaption(hChild,1,1); hSubChild = var_Items.InsertItem(hChild,null,"SubChild B"); var_Items.set_CellCaption(hSubChild,1,2); var_Items.set_ExpandItem(h,true); extree1.FilterInclude = exontrol.EXTREELib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXTREELib.Column var_Column = extree1.Columns["Level"]; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = 2.ToString(); extree1.ApplyFilter(); |
569 |
How can I sort by two-columns, one by date and one by time
extree1.BeginUpdate(); extree1.SingleSort = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("Index") as exontrol.EXTREELib.Column).FormatColumn = "1 index ``"; (var_Columns.Add("Date") as exontrol.EXTREELib.Column).SortType = exontrol.EXTREELib.SortTypeEnum.SortDate; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Time") as exontrol.EXTREELib.Column); var_Column.SortType = exontrol.EXTREELib.SortTypeEnum.SortTime; var_Column.FormatColumn = "time(value)"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); h = var_Items.AddItem(0); var_Items.set_CellCaption(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); extree1.Layout = "multiplesort=\"C1:1 C2:1\""; extree1.EndUpdate(); |
568 |
We are using custom buttons for the +/- on the treeview control, is there a way to control the size of the image
extree1.BeginUpdate(); exontrol.EXTREELib.Appearance var_Appearance = extree1.VisualAppearance; var_Appearance.Add(3,"gBFLBCJwBAEHhEJAAChABDEMACAADACAxRDQNABQKAAzQFAYbBkGqGAAGIYxYgmFgAQhFcZQSKUOQTDKMIziaQIRg8JYlDTJcIjKKEVQHFiXIrAKKwEgmEQMQiCcbzX" + "IUBxAAqVZZFUaKAi+Qg4TLBAzUSAAYhtHqeJBjID4JA6UJXRpIAIQSSBUjGOg6TiMUYZAguAxCEzZUT0fAYUQSCC3ZzDCKoRpiCT7Xg8V5OVbjUz9P7AMBwLA7erxap6" + "PJeD54QymGp/R5eMhyLI8UxXFqRY6veKtJhGDIrT5CEIQVA9EyXJqnahqOiaCguPorQy/dYYdg2BYBPS6MAvG4bVrOd59XrgN42fY2ByzAqlMQwS7rOqiY6YWTnehWTo" + "HE+JZUmoLB5CufQuAkBYkGO+ZrDWAo7keZZyHmH5+i8X4bluaJyHgGB9mQHx3JjBpViqJRHmueZ7H8Xo3i2fYAl+d5tncMRfDcdZeDMDIjCCJwokoEoQiEJ4KCIfIdgU" + "SZIAWaoGCEUh2BIJ4gnKBgMDICAnHoCggg0Aw4k0KAJkIagaguYwIj4LAmiKEw2CUIIiHMUJSDQSYyGCFYMGQCJCD0JRjiMRg3gmTYjGSVgmgkchSD4JJklIRIXCSSQY" + "j4U4UgkQhGE+EwJEkJJWhGpgGGIOBNmMdhPg8SRiHCGAlibNhohqJpJi4T4ZA2WYIgEYInGOGJlDkCQyECDoTEkKQ+E+C5oCIVhQCUCQpnSDoeg4SZZH8YdhjibQ7AiU" + "gkgcJFyiyEYmGmOhqhyJ5pmILoYCKaRSB6Eg7CcZgZggaRqHqNoTiuDpKkKMormsQ4xiUYgYiKEo6CCWgWiqPovloZoGjoKQYiQBCAg=="); var_Appearance.Add(4,"gBFLBCJwBAEHhEJAAChABDcMACAADACAxRDQNABQKAAzQFAYbBkGqGAAGIYxYgmFgAQhFcZQSKUOQTDKMIziaQIRg8JYlDTJcIjKKEVQHFiXIrAKKwEgmEQMQiCcbzX" + "IUBxAAqVZZFUaKAi+Qg4TLBAzUSAAYhtHqeJBjID4JA6UJXRpIAIQSSBUjGOg6TiMUYZAguAxCEzZUT0fAYUQSCC3ZzDCKoRpiCT7Xg8V5OVbjUz9P7AMBwLA7erxap6" + "PJeD54QymGp/R5eMhyLI8UxXFqRY6veKtJhGDIrT5CEIQVA9EyXJqnahqOiaCguPorQy/dYYdg2BYBPS6MAvG4bVrOd59XrgN42fY2ByzAqlMQwS7rOqiY6YWTnehWTo" + "HE+JZUmoLB5CufQuAkBYkGO+ZrDWAo7keZZyHmPQ+g8X4fluYBhneEB9l0Iwpg6RRWiqFQfg+V5nnefh/GAB5yAIfRMFeRZdHeDJDCiSApkoMoEiQKBJmKCIfCcYQiHI" + "FYFkmeBaBOA5JmgMIhgITICAmXoBkgIxAk4MxKAIcIaD+YpIjYLoLmMCI2CkJoiGMNgiCCIhDFCUg0EmMhghWDBkAkBg9CUY4jEYN4JA2IxklYJoJHIUg+CSZJSESFwk" + "mUKRSFOFRlCIUIRhOZJCFISQ1iQdgEgGGJOBMeJdhOY5SFiHAmAkaYmG6GwmhmLhthsJJ5hSXYYkgFgKHgOYOFOEITCQCJpDSEoTmgQhUhOIRoHoGoCh+SJpnCZIeBed" + "gaHgO4OlOMINCISByECDQikkGhuh2JwpmqBogCKaYiC6FwhmkQ4yHgYYYgaFopiuaRakCbIsisSpGjYOwaFYIYKCkK5CA2IRqiwCwFiYaBrkKEYKEAQCAgA=="); var_Appearance.Add(1,"CP:3 -4 -4 4 4"); var_Appearance.Add(2,"CP:4 -4 -4 4 4"); extree1.DefaultItemHeight = 22; extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exGroupLinesAtRoot; extree1.HasButtons = exontrol.EXTREELib.ExpandButtonEnum.exCustom; extree1.set_HasButtonsCustom(false,16777216); extree1.set_HasButtonsCustom(true,33554432); extree1.Columns.Add("Column"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child"); extree1.EndUpdate(); |
567 |
How can I connect to a DBF file
|
566 |
Do you have any Fit-To-Page options when printing the control
extree1.BeginUpdate(); extree1.ColumnAutoResize = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\Access\\sample.mdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); extree1.DataSource = (rs as ADODB.Recordset); extree1.EndUpdate(); // Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint(); var_Print.Options = "FitToPage = On"; var_Print.PrintExt = (extree1 as exontrol.EXTREELib.extree); var_Print.Preview(); |
565 |
Does your control supports scrolling by touching the screen
|
564 |
How do I prevent showing the control's BackColorAlternate property on empty / non-items part of the control
extree1.BackColorAlternate32 = 0x7ff0f0f0; extree1.Columns.Add("Column"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); var_Items.AddItem("Item 5"); |
563 |
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange
// CellStateChanged event - Fired after cell's state has been changed. private void extree1_CellStateChanged(object sender,int Item,int ColIndex) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(Item,2,var_Items.get_CellState(Item,0)); } //this.extree1.CellStateChanged += new exontrol.EXTREELib.exg2antt.CellStateChangedEventHandler(this.extree1_CellStateChanged); extree1.BeginUpdate(); extree1.ShowFocusRect = false; extree1.MarkSearchColumn = false; extree1.SelBackMode = exontrol.EXTREELib.BackModeEnum.exTransparent; exontrol.EXTREELib.ConditionalFormat var_ConditionalFormat = extree1.ConditionalFormats.Add("%2 != 0",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ForeColor = Color.FromArgb(255,0,0); var_ConditionalFormat.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToItems; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column.Width = 16; var_Column.AllowSizing = false; extree1.Columns.Add("Information"); (extree1.Columns.Add("Hidden") as exontrol.EXTREELib.Column).Visible = false; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem(""),1,"This is a bit of text associated"); int h = var_Items.AddItem(""); var_Items.set_CellCaption(h,1,"This is a bit of text associated"); var_Items.set_CellState(h,0,1); var_Items.set_CellCaption(var_Items.AddItem(""),1,"This is a bit of text associated"); extree1.EndUpdate(); |
562 |
How can I start editing the cell as soon as the user clicks a cell
// AfterCellEdit event - Occurs after data in the current cell is edited. private void extree1_AfterCellEdit(object sender,int Item,int ColIndex,string NewCaption) { extree1.Items.set_CellCaption(Item,ColIndex,NewCaption); } //this.extree1.AfterCellEdit += new exontrol.EXTREELib.exg2antt.AfterCellEditEventHandler(this.extree1_AfterCellEdit); // CancelCellEdit event - Occurs if the edit operation is canceled. private void extree1_CancelCellEdit(object sender,int Item,int ColIndex,object Reserved) { extree1.Items.set_CellCaption(Item,ColIndex,Reserved); } //this.extree1.CancelCellEdit += new exontrol.EXTREELib.exg2antt.CancelCellEditEventHandler(this.extree1_CancelCellEdit); // Click event - Occurs when the user presses and then releases the left mouse button over the tree control. private void extree1_Click(object sender) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.Edit(var_Items.FocusItem,0); } //this.extree1.Click += new exontrol.EXTREELib.exg2antt.ClickEventHandler(this.extree1_Click); extree1.AllowEdit = true; extree1.Columns.Add("Column"); extree1.Items.AddItem("Item 1"); extree1.Items.AddItem("Item 2"); extree1.Items.AddItem(""); |
561 |
How do I programmatically exclude items from the filter
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Items") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowExclude | exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); var_Items.AddItem("Item 4"); exontrol.EXTREELib.Column var_Column1 = extree1.Columns[0]; var_Column1.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilterExclude | exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column1.Filter = "Item 1|Item 4"; extree1.ApplyFilter(); extree1.EndUpdate(); |
560 |
How can I sort the columns to be displayed on the columns floating bar
|
559 |
How can I add a vertical padding
extree1.BeginUpdate(); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Padding") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingLeft,6); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingRight,6); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingTop,6); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingBottom,6); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("padding"); var_Items.AddItem("padding"); extree1.EndUpdate(); |
558 |
Is the PutItems method running .AddItem event
// AddItem event - Occurs after a new Item has been inserted to Items collection. private void extree1_AddItem(object sender,int Item) { System.Diagnostics.Debug.Print( "Adding ..." ); System.Diagnostics.Debug.Print( extree1.Items.get_CellCaption(Item,0).ToString() ); } //this.extree1.AddItem += new exontrol.EXTREELib.exg2antt.AddItemEventHandler(this.extree1_AddItem); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("Def"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); System.Diagnostics.Debug.Print( "Call PutItems" ); extree1.PutItems(extree1.GetItems(-1),null); |
557 |
How do you embed HTML options into the anchor click string
// AnchorClick event - Occurs when an anchor element is clicked. private void extree1_AnchorClick(object sender,string AnchorID,string Options) { System.Diagnostics.Debug.Print( AnchorID.ToString() ); System.Diagnostics.Debug.Print( Options.ToString() ); } //this.extree1.AnchorClick += new exontrol.EXTREELib.exg2antt.AnchorClickEventHandler(this.extree1_AnchorClick); extree1.BeginUpdate(); exontrol.EXTREELib.Columns var_Columns = extree1.Columns; (var_Columns.Add("Car") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("<a mazda_1;options for 1>Mazda <b>1</b></a>"); var_Items.AddItem("<a mazda_2;options for 2>Mazda <b>2</b></a>"); var_Items.AddItem("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>"); var_Items.AddItem("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>"); extree1.EndUpdate(); |
556 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)
extree1.BeginUpdate(); extree1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e" + "gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" + "LC8Mw3BDvYDkOAABAIgI="); extree1.SelBackColor32 = 0x1fffffe; extree1.ShowFocusRect = false; extree1.Columns.Add("Items"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_ItemBackColor(var_Items.AddItem("red"),Color.FromArgb(255,0,0)); var_Items.set_ItemBackColor(var_Items.AddItem("blue"),Color.FromArgb(0,0,255)); var_Items.set_ItemBackColor(var_Items.AddItem("green"),Color.FromArgb(0,255,0)); extree1.EndUpdate(); |
555 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)
extree1.BeginUpdate(); extree1.SelBackMode = exontrol.EXTREELib.BackModeEnum.exTransparent; extree1.ShowFocusRect = false; extree1.Columns.Add("Items"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_ItemBackColor(var_Items.AddItem("red"),Color.FromArgb(255,0,0)); var_Items.set_ItemBackColor(var_Items.AddItem("blue"),Color.FromArgb(0,0,255)); var_Items.set_ItemBackColor(var_Items.AddItem("green"),Color.FromArgb(0,255,0)); extree1.EndUpdate(); |
554 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)
extree1.BeginUpdate(); extree1.SelBackColor = extree1.BackColor; extree1.SelForeColor = extree1.ForeColor; extree1.ShowFocusRect = true; extree1.Columns.Add("Items"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_ItemBackColor(var_Items.AddItem("red"),Color.FromArgb(255,0,0)); var_Items.set_ItemBackColor(var_Items.AddItem("blue"),Color.FromArgb(0,0,255)); var_Items.set_ItemBackColor(var_Items.AddItem("green"),Color.FromArgb(0,255,0)); extree1.EndUpdate(); |
553 |
How do I arrange my columns on multiple levels
extree1.BeginUpdate(); extree1.ColumnAutoResize = false; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("C0") as exontrol.EXTREELib.Column); var_Column.ExpandColumns = "1,2"; var_Column.DisplayExpandButton = false; var_Columns.Add("C1"); var_Columns.Add("C2"); var_Columns.Add("C3"); exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("C4") as exontrol.EXTREELib.Column); var_Column1.ExpandColumns = "5,6"; var_Column1.DisplayExpandButton = false; var_Columns.Add("C5"); exontrol.EXTREELib.Column var_Column2 = (var_Columns.Add("C6") as exontrol.EXTREELib.Column); var_Column2.ExpandColumns = "6,7"; var_Column2.DisplayExpandButton = false; var_Columns.Add("C7"); extree1.EndUpdate(); |
552 |
Does your control support expandable header or columns, so I can arrange it on multiple levels
extree1.BeginUpdate(); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines; extree1.BackColorLevelHeader = Color.FromArgb(240,240,240); exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Photo") as exontrol.EXTREELib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Columns.Add("Personal Info"); var_Columns.Add("Title"); var_Columns.Add("Name"); var_Columns.Add("First"); var_Columns.Add("Last"); var_Columns.Add("Address"); var_Columns["Personal Info"].ExpandColumns = "2,3"; exontrol.EXTREELib.Column var_Column1 = var_Columns["Name"]; var_Column1.ExpandColumns = "4,5"; var_Column1.Expanded = false; extree1.EndUpdate(); |
551 |
Does your control support subscript or superscript, in HTML captions
extree1.ColumnAutoResize = false; extree1.HeaderHeight = 28; extree1.DefaultItemHeight = 24; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Column 1") as exontrol.EXTREELib.Column); var_Column.HTMLCaption = "Column <b><off 2><font ;6>1"; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("Column 2") as exontrol.EXTREELib.Column); var_Column1.HTMLCaption = "Column <b><off 2><font ;6>2"; var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Column var_Column2 = (var_Columns.Add("Column 3") as exontrol.EXTREELib.Column); var_Column2.HTMLCaption = "Column <b><off 2><font ;6>3"; var_Column2.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Item <font ;6><off 4>1"); var_Items.set_CellCaption(h,1,"Item <font ;6><off -6>2"); var_Items.set_CellCaption(h,2,"Item <b><font ;6><off -6>2<off 4>3<off 4>1"); |
550 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)
extree1.BeginUpdate(); extree1.Columns.Add("Column"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); extree1.Layout = "Select=\"0\";SingleSort=\"C0:2\";Columns=1"; extree1.EndUpdate(); |
549 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)
extree1.BeginUpdate(); extree1.Columns.Add("Column"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.AddItem("Item 2"); var_Items.AddItem("Item 3"); extree1.Layout = "gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAG" + "QAqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0" + "jE3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI="; extree1.EndUpdate(); |
548 |
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance
extree1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Column 1"); var_Columns.Add("Column 2"); extree1.BackColorHeader32 = 0x1000000; extree1.set_Background32(exontrol.EXTREELib.BackgroundPartEnum.exCursorHoverColumn,0x12d86ff); |
547 |
Is it possible to change the visual appearance of the columns selector/floating bar(3)
extree1.ColumnAutoResize = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXTREELib.Column).Visible = false; extree1.VisualAppearance.Add(2,"c:\\exontrol\\images\\normal.ebn"); extree1.VisualAppearance.Add(3,"c:\\exontrol\\images\\pushed.ebn"); extree1.set_Background32(exontrol.EXTREELib.BackgroundPartEnum.exColumnsFloatAppearance,0x2000000); extree1.set_Background32(exontrol.EXTREELib.BackgroundPartEnum.exColumnsFloatBackColor,0x3000000); extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exColumnsFloatCaptionBackColor,Color.FromArgb(246,245,240)); extree1.ColumnsFloatBarVisible = exontrol.EXTREELib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns; |
546 |
Is it possible to change the visual appearance of the columns selector/floating bar(2)
extree1.ColumnAutoResize = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXTREELib.Column).Visible = false; extree1.VisualAppearance.Add(3,"c:\\exontrol\\images\\pushed.ebn"); extree1.set_Background32(exontrol.EXTREELib.BackgroundPartEnum.exColumnsFloatBackColor,0x3000000); extree1.ColumnsFloatBarVisible = exontrol.EXTREELib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns; |
545 |
Is it possible to change the visual appearance of the columns selector/floating bar(1)
|
544 |
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list
|
543 |
Is it possible to list a column to columns selector/floating bar, but still user can use it
extree1.ColumnAutoResize = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Column 1"); (var_Columns.Add("Column 2") as exontrol.EXTREELib.Column).Visible = false; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Column 3") as exontrol.EXTREELib.Column); var_Column.Visible = false; var_Column.Enabled = false; extree1.ColumnsFloatBarVisible = exontrol.EXTREELib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns; |
542 |
How can I prevent a specific column not to be listed in the columns selector/floating bar
|
541 |
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar
|
540 |
How can I show the columns selector, so the user can drag and drop columns to the view
|
539 |
The column's header is changed while the cursor hovers it. Is it possible to prevent that
exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Column 1"); var_Columns.Add("Column 2"); extree1.set_Background32(exontrol.EXTREELib.BackgroundPartEnum.exCursorHoverColumn,-1); |
538 |
Is there any public method to export the selected data
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("C1"); (var_Columns.Add("C2") as exontrol.EXTREELib.Column).FormatColumn = "1 index `A-Z`"; (var_Columns.Add("C3") as exontrol.EXTREELib.Column).FormatColumn = "100 index ``"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Item 1"); var_Items.set_SelectItem(var_Items.AddItem("Item 2"),true); var_Items.AddItem("Item 3"); extree1.EndUpdate(); System.Diagnostics.Debug.Print( "Export CSV Selected Items Only:" ); System.Diagnostics.Debug.Print( extree1.Export("","sel").ToString() ); |
537 |
Is it possible to auto-numbering the children items but still keeps the position after filtering
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Items") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "Child 2"; exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("Pos.1") as exontrol.EXTREELib.Column); var_Column1.FormatColumn = "1 ropos ''"; var_Column1.Position = 0; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXTREELib.Column var_Column2 = (extree1.Columns.Add("Pos.2") as exontrol.EXTREELib.Column); var_Column2.FormatColumn = "1 ropos ':'"; var_Column2.Position = 1; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXTREELib.Column var_Column3 = (extree1.Columns.Add("Pos.3") as exontrol.EXTREELib.Column); var_Column3.FormatColumn = "1 ropos ':|A-Z'"; var_Column3.Position = 2; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXTREELib.Column var_Column4 = (extree1.Columns.Add("Pos.4") as exontrol.EXTREELib.Column); var_Column4.FormatColumn = "1 ropos '|A-Z|'"; var_Column4.Position = 3; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXTREELib.Column var_Column5 = (extree1.Columns.Add("Pos.5") as exontrol.EXTREELib.Column); var_Column5.FormatColumn = "'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'"; var_Column5.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 4; var_Column5.Width = 32; var_Column5.AllowSizing = false; exontrol.EXTREELib.Column var_Column6 = (extree1.Columns.Add("Pos.6") as exontrol.EXTREELib.Column); var_Column6.FormatColumn = "'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column6.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column6.Position = 5; var_Column6.Width = 48; var_Column6.AllowSizing = false; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); extree1.ApplyFilter(); extree1.EndUpdate(); |
536 |
Is it possible to auto-numbering the children items too
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("Items"); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Pos.1") as exontrol.EXTREELib.Column); var_Column.FormatColumn = "1 rpos ''"; var_Column.Position = 0; var_Column.Width = 32; var_Column.AllowSizing = false; exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("Pos.2") as exontrol.EXTREELib.Column); var_Column1.FormatColumn = "1 rpos ':'"; var_Column1.Position = 1; var_Column1.Width = 32; var_Column1.AllowSizing = false; exontrol.EXTREELib.Column var_Column2 = (extree1.Columns.Add("Pos.3") as exontrol.EXTREELib.Column); var_Column2.FormatColumn = "1 rpos ':|A-Z'"; var_Column2.Position = 2; var_Column2.Width = 32; var_Column2.AllowSizing = false; exontrol.EXTREELib.Column var_Column3 = (extree1.Columns.Add("Pos.4") as exontrol.EXTREELib.Column); var_Column3.FormatColumn = "1 rpos '|A-Z|'"; var_Column3.Position = 3; var_Column3.Width = 32; var_Column3.AllowSizing = false; exontrol.EXTREELib.Column var_Column4 = (extree1.Columns.Add("Pos.5") as exontrol.EXTREELib.Column); var_Column4.FormatColumn = "'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'"; var_Column4.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column4.Position = 4; var_Column4.Width = 32; var_Column4.AllowSizing = false; exontrol.EXTREELib.Column var_Column5 = (extree1.Columns.Add("Pos.6") as exontrol.EXTREELib.Column); var_Column5.FormatColumn = "'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'"; var_Column5.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column5.Position = 5; var_Column5.Width = 48; var_Column5.AllowSizing = false; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); extree1.EndUpdate(); |
535 |
How can I find if there is any filter applied to the control
// FilterChange event - Notifies your application that the filter is changed. private void extree1_FilterChange(object sender) { System.Diagnostics.Debug.Print( "If negative, the filter is present, else not" ); System.Diagnostics.Debug.Print( extree1.Items.VisibleItemCount.ToString() ); } //this.extree1.FilterChange += new exontrol.EXTREELib.exg2antt.FilterChangeEventHandler(this.extree1_FilterChange); extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.TreeColumnIndex = -1; extree1.FilterInclude = exontrol.EXTREELib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Column") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "C1"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); extree1.ApplyFilter(); extree1.EndUpdate(); |
534 |
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.TreeColumnIndex = -1; extree1.FilterInclude = exontrol.EXTREELib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Column") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "C1|C2"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); extree1.ApplyFilter(); extree1.EndUpdate(); |
533 |
Is there any method to get only the matched items and not the items with his parent
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.FilterInclude = exontrol.EXTREELib.FilterIncludeEnum.exMatchingItemsOnly; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Column") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "C1|C2"; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("R1"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("R2"); var_Items.InsertItem(h,null,"C1"); var_Items.InsertItem(h,null,"C2"); extree1.ApplyFilter(); extree1.EndUpdate(); |
532 |
How can I add or change the padding (spaces) for captions in the control's header
extree1.BeginUpdate(); (extree1.Columns.Add("Padding-Left") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exHeaderPaddingLeft,18); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Padding-Right") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exHeaderPaddingRight,18); var_Column.HeaderAlignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment; extree1.EndUpdate(); |
531 |
Do you have any plans to add cell spacing and cell padding to the cells
extree1.BeginUpdate(); extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Padding-Left") as exontrol.EXTREELib.Column); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellPaddingLeft,18); (extree1.Columns.Add("No-Padding") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,true); (extree1.Columns.Add("Empty") as exontrol.EXTREELib.Column).Position = 0; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("Item A.1"),1,"Item A.2"); var_Items.set_CellCaption(var_Items.AddItem("Item B.1"),1,"Item B.2"); var_Items.set_CellCaption(var_Items.AddItem("Item C.1"),1,"Item C.2"); extree1.EndUpdate(); |
530 |
Is it possible display numbers in the same format no matter of regional settings in the control panel
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default positive)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default negative)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')"); extree1.EndUpdate(); |
529 |
Is it possible to add a 0 for numbers less than 1 instead .7 to show 0.8
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(0.27); var_Items.set_FormatCell(h,0,"(value format '|||||0') + ' <fgcolor=808080>(Display no leading zeros)'"); extree1.EndUpdate(); |
528 |
How can I specify the format for negative numbers
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(-100000.27); var_Items.set_FormatCell(h,0,"(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"); extree1.EndUpdate(); |
527 |
Is it possible to change the grouping character when display numbers
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '|||-') + ' <fgcolor=808080>(grouping character is -)'"); extree1.EndUpdate(); |
526 |
How can I display numbers with 2 digits in each group
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100000.27); var_Items.set_FormatCell(h,0,"(value format '||2') + ' <fgcolor=808080>(grouping by 2 digits)'"); extree1.EndUpdate(); |
525 |
How can I display my numbers using a different decimal separator
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '|;') + ' <fgcolor=808080>(decimal separator is <b>;</b>)'"); extree1.EndUpdate(); |
524 |
Is it possible to display the numbers using 3 (three) digits
extree1.BeginUpdate(); (extree1.Columns.Add("Def") as exontrol.EXTREELib.Column).set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '') + ' <fgcolor=808080>(default)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format '3') + ' <fgcolor=808080>(3 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 2) + ' <fgcolor=808080>(2 digits)'"); h = var_Items.AddItem(100.27); var_Items.set_FormatCell(h,0,"(value format 1) + ' <fgcolor=808080>(1 digit)'"); extree1.EndUpdate(); |
523 |
Is it possible to format numbers
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Name"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("A") as exontrol.EXTREELib.Column); var_Column.SortType = exontrol.EXTREELib.SortTypeEnum.SortNumeric; var_Column.AllowSizing = false; var_Column.Width = 36; var_Column.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("B") as exontrol.EXTREELib.Column); var_Column1.SortType = exontrol.EXTREELib.SortTypeEnum.SortNumeric; var_Column1.AllowSizing = false; var_Column1.Width = 36; var_Column1.FormatColumn = "len(value) ? value + ' +'"; exontrol.EXTREELib.Column var_Column2 = (var_Columns.Add("C") as exontrol.EXTREELib.Column); var_Column2.SortType = exontrol.EXTREELib.SortTypeEnum.SortNumeric; var_Column2.AllowSizing = false; var_Column2.Width = 36; var_Column2.FormatColumn = "len(value) ? value + ' ='"; exontrol.EXTREELib.Column var_Column3 = (var_Columns.Add("A+B+C") as exontrol.EXTREELib.Column); var_Column3.SortType = exontrol.EXTREELib.SortTypeEnum.SortNumeric; var_Column3.Width = 64; var_Column3.ComputedField = "dbl(%1)+dbl(%2)+dbl(%3)"; var_Column3.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column3.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root"); var_Items.set_CellCaptionFormat(h,4,exontrol.EXTREELib.CaptionFormatEnum.exComputedField); int h1 = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_CellCaption(h1,1,7); var_Items.set_CellCaption(h1,2,3); var_Items.set_CellCaption(h1,3,1); h1 = var_Items.InsertItem(h,null,"Child 2"); var_Items.set_CellCaption(h1,1,-2); var_Items.set_CellCaption(h1,2,-2); var_Items.set_CellCaption(h1,3,-4); h1 = var_Items.InsertItem(h,null,"Child 3"); var_Items.set_CellCaption(h1,1,2); var_Items.set_CellCaption(h1,2,2); var_Items.set_CellCaption(h1,3,-4); var_Items.set_ExpandItem(h,true); extree1.EndUpdate(); |
522 |
I am using the FormatColumn/FormatCell to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings
// SelectionChanged event - Fired after a new item has been selected. private void extree1_SelectionChanged(object sender) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.ClearItemBackColor(0); var_Items.set_ItemBackColor(var_Items.get_SelectedItem(0),Color.FromArgb(128,255,255)); } //this.extree1.SelectionChanged += new exontrol.EXTREELib.exg2antt.SelectionChangedEventHandler(this.extree1_SelectionChanged); extree1.BeginUpdate(); extree1.MarkSearchColumn = false; extree1.SelForeColor = extree1.ForeColor; extree1.SelBackColor = extree1.BackColor; extree1.ShowFocusRect = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Format") as exontrol.EXTREELib.Column); var_Column.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(10); var_Items.AddItem(-8); extree1.EndUpdate(); |
521 |
Is it possible to change the height for all items at once
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; extree1.Columns.Add("Items"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(0,true); extree1.EndUpdate(); extree1.DefaultItemHeight = 12; extree1.Items.set_ItemHeight(0,12); |
520 |
How can I add a footer row
extree1.ShowLockedItems = true; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exVLines; extree1.Columns.Add("C1"); extree1.Columns.Add("C2"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_LockedItemCount(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,1); int h = var_Items.get_LockedItem(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,0); var_Items.set_ItemBackColor(h,Color.FromArgb(128,128,128)); var_Items.set_ItemForeColor(h,Color.FromArgb(255,255,255)); var_Items.set_CellCaption(h,0,"footer c1"); var_Items.set_CellCaption(h,1,"footer c2"); var_Items.set_CellCaption(var_Items.AddItem("cell"),1,"cell"); |
519 |
How can I add a header row
extree1.ShowLockedItems = true; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exVLines; extree1.Columns.Add("C1"); extree1.Columns.Add("C2"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_LockedItemCount(exontrol.EXTREELib.VAlignmentEnum.TopAlignment,1); int h = var_Items.get_LockedItem(exontrol.EXTREELib.VAlignmentEnum.TopAlignment,0); var_Items.set_ItemBackColor(h,Color.FromArgb(128,128,128)); var_Items.set_ItemForeColor(h,Color.FromArgb(255,255,255)); var_Items.set_CellCaption(h,0,"footer c1"); var_Items.set_CellCaption(h,1,"footer c2"); var_Items.set_CellCaption(var_Items.AddItem("cell"),1,"cell"); |
518 |
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares
exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Value"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("CellSingleLine = False") as exontrol.EXTREELib.Column); var_Column.ComputedField = "%0"; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,false); exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("FormatColumn/replace CRLF") as exontrol.EXTREELib.Column); var_Column1.ComputedField = "%0"; var_Column1.FormatColumn = "value replace `\\r\\n` with ``"; exontrol.EXTREELib.Column var_Column2 = (var_Columns.Add("FormatColumn/replace TAB,CRLF") as exontrol.EXTREELib.Column); var_Column2.ComputedField = "%0"; var_Column2.FormatColumn = "(value replace `\\t` with ``) replace `\\r\\n` with ``"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("a\\ta\\r\\nb\\tb"); |
517 |
Is there any way to "unselect" radio group
// DblClick event - Occurs when the user dblclk the left mouse button over an object. private void extree1_DblClick(object sender,short Shift,int X,int Y) { exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.get_CellChecked(1234); var_Items.set_CellHasCheckBox(0,h,true); var_Items.set_CellState(0,h,0); var_Items.set_CellHasCheckBox(0,h,false); } //this.extree1.DblClick += new exontrol.EXTREELib.exg2antt.DblClickEventHandler(this.extree1_DblClick); // SelectionChanged event - Fired after a new item has been selected. private void extree1_SelectionChanged(object sender) { exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellState(var_Items.FocusItem,0,1); } //this.extree1.SelectionChanged += new exontrol.EXTREELib.exg2antt.SelectionChangedEventHandler(this.extree1_SelectionChanged); extree1.MarkSearchColumn = false; extree1.SelBackColor = Color.FromArgb(255,255,128); extree1.SelForeColor = Color.FromArgb(0,0,0); extree1.Columns.Add("Default"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Radio 1"); var_Items.set_CellHasRadioButton(h,0,true); var_Items.set_CellRadioGroup(h,0,1234); h = var_Items.AddItem("Radio 2"); var_Items.set_CellHasRadioButton(h,0,true); var_Items.set_CellRadioGroup(h,0,1234); var_Items.set_CellState(h,0,1); h = var_Items.AddItem("Radio 3"); var_Items.set_CellHasRadioButton(h,0,true); var_Items.set_CellRadioGroup(h,0,1234); |
516 |
The Column.Alignment property does not seem to work for cells with images in them. What can be done
extree1.BeginUpdate(); extree1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); extree1.TreeColumnIndex = -1; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines; extree1.HeaderHeight = 24; extree1.MarkSearchColumn = false; extree1.DefaultItemHeight = 24; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Image") as exontrol.EXTREELib.Column); var_Column.AllowSizing = false; var_Column.Width = 32; var_Column.HTMLCaption = "<img>1</img>"; var_Column.HeaderAlignment = exontrol.EXTREELib.AlignmentEnum.CenterAlignment; var_Column.Alignment = exontrol.EXTREELib.AlignmentEnum.CenterAlignment; var_Column.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); extree1.Columns.Add("Rest"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("<img>1</img>"); var_Items.AddItem("<img>2</img>"); var_Items.AddItem("<img>3</img>"); extree1.EndUpdate(); |
515 |
Can I change the format of date to be shown in the control
exontrol.EXTREELib.Columns var_Columns = extree1.Columns; var_Columns.Add("Default"); exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Format.1") as exontrol.EXTREELib.Column); var_Column.ComputedField = "%0"; var_Column.FormatColumn = "dateF(value) replace `/` with `-`"; exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("Format.2") as exontrol.EXTREELib.Column); var_Column1.ComputedField = "%0"; var_Column1.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column1.FormatColumn = "`<b>`+ shortdate(value) + `</b> ` + timeF(value)"; exontrol.EXTREELib.Column var_Column2 = (var_Columns.Add("Format.3") as exontrol.EXTREELib.Column); var_Column2.ComputedField = "%0"; var_Column2.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); var_Column2.FormatColumn = "( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `" + "Fr`; 6 : `Sa`) )"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("1/2/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
514 |
Is it possible to scroll the control's content by clicking and dragging
|
513 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
extree1.BeginUpdate(); extree1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); extree1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png"); extree1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png"); extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragCopySnapShot; extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exNoLinesAtRoot; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exThinLine; extree1.ShowFocusRect = false; extree1.DefaultItemHeight = 26; extree1.Columns.Add("Task"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("<img>p1:32</img>Group 1"); var_Items.set_CellCaptionFormat(h,0,exontrol.EXTREELib.CaptionFormatEnum.exHTML); var_Items.set_ItemDivider(h,0); var_Items.set_ItemBold(h,true); int h1 = var_Items.InsertItem(h,null,"Task 1"); int h2 = var_Items.InsertItem(h,null,"Task 2"); int h3 = var_Items.InsertItem(h,null,"Task 3"); h = var_Items.AddItem("<img>p2:32</img>Group 2"); var_Items.set_CellCaptionFormat(h,0,exontrol.EXTREELib.CaptionFormatEnum.exHTML); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); h1 = var_Items.InsertItem(h,null,"Task"); var_Items.set_ExpandItem(0,true); extree1.EndUpdate(); |
512 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image
extree1.BeginUpdate(); extree1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png"); extree1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png"); object var_HTMLPicture = extree1.get_HTMLPicture("aka1"); extree1.HeaderHeight = 24; extree1.DefaultItemHeight = 48; extree1.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exRowLines; extree1.GridLineColor = Color.FromArgb(240,240,240); extree1.SelBackMode = exontrol.EXTREELib.BackModeEnum.exTransparent; extree1.ColumnAutoResize = false; extree1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\Access\\sample.mdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); extree1.DataSource = (rs as ADODB.Recordset); extree1.Columns[0].set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1); extree1.Columns[0].FormatColumn = "value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`"; extree1.Columns[0].Width = 112; extree1.Columns[1].set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,1); extree1.Columns[2].LevelKey = "1"; extree1.Columns[3].LevelKey = "1"; extree1.Columns[4].LevelKey = "1"; extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragCopyImage; extree1.SingleSel = false; exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items[1]; var_Items.set_SelectItem(h,true); h = var_Items[2]; var_Items.set_SelectItem(h,true); h = var_Items[3]; var_Items.set_SelectItem(h,true); var_Items.set_LockedItemCount(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,1); h = var_Items.get_LockedItem(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,0); var_Items.set_CellCaption(h,1,"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, ..."); var_Items.set_CellSingleLine(h,1,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CellCaptionFormat(h,1,exontrol.EXTREELib.CaptionFormatEnum.exHTML); var_Items.set_CellHAlignment(h,1,exontrol.EXTREELib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,1); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXTREELib.DividerAlignmentEnum.DividerTop); extree1.EndUpdate(); |
511 |
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text
|
510 |
Is it possible to change the indentation during the drag and drop
extree1.BeginUpdate(); extree1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionAny; extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exNoLinesAtRoot; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exSolidLine; extree1.HasButtons = exontrol.EXTREELib.ExpandButtonEnum.exWPlus; extree1.ShowFocusRect = false; extree1.SelBackMode = exontrol.EXTREELib.BackModeEnum.exTransparent; extree1.Columns.Add("Task"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); int h1 = var_Items.InsertItem(h,null,"Task 1"); int h2 = var_Items.InsertItem(h1,null,"Task 2"); h2 = var_Items.InsertItem(h1,null,"Task 3"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.set_ExpandItem(h,true); var_Items.set_ExpandItem(h1,true); h = var_Items.AddItem("Group 2"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); var_Items.set_LockedItemCount(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,1); h = var_Items.get_LockedItem(exontrol.EXTREELib.VAlignmentEnum.BottomAlignment,0); var_Items.set_CellCaption(h,0,"Click a row, and move by dragging <b>up, down</b> to change the row's parent or <b>left,right</b> to increase or decrease the i" + "ndentation."); var_Items.set_CellSingleLine(h,0,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CellCaptionFormat(h,0,exontrol.EXTREELib.CaptionFormatEnum.exHTML); extree1.EndUpdate(); |
509 |
Is it possible to allow moving an item to another, but keeping its indentation
extree1.BeginUpdate(); extree1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPositionKeepIndent; extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exNoLinesAtRoot; extree1.HasLines = exontrol.EXTREELib.HierarchyLineEnum.exThinLine; extree1.ShowFocusRect = false; extree1.Columns.Add("Task"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_ItemDivider(h,0); var_Items.set_ItemBold(h,true); int h1 = var_Items.InsertItem(h,null,"Task 1"); int h2 = var_Items.InsertItem(h,null,"Task 2"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Group 2"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); extree1.EndUpdate(); |
508 |
How can I change the row's position to another, by drag and drop. Is it possible
extree1.BeginUpdate(); extree1.ShowFocusRect = false; extree1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); extree1.AutoDrag = exontrol.EXTREELib.AutoDragEnum.exAutoDragPosition; extree1.Columns.Add("Task"); exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem("Task 1"); var_Items.AddItem("Task 2"); var_Items.AddItem("Task 3"); var_Items.AddItem("Task 4"); extree1.EndUpdate(); |
507 |
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area
extree1.BeginUpdate(); extree1.ScrollBars = exontrol.EXTREELib.ScrollBarsEnum.exDisableBoth; extree1.set_ScrollPartVisible(exontrol.EXTREELib.ScrollBarEnum.exVScroll,exontrol.EXTREELib.ScrollPartEnum.exExtentThumbPart,true); extree1.set_ScrollPartVisible(exontrol.EXTREELib.ScrollBarEnum.exHScroll,exontrol.EXTREELib.ScrollPartEnum.exExtentThumbPart,true); extree1.set_ScrollPartVisible((exontrol.EXTREELib.ScrollBarEnum)0x2,exontrol.EXTREELib.ScrollPartEnum.exExtentThumbPart,true); extree1.ScrollWidth = 4; extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exVSBack,Color.FromArgb(240,240,240)); extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exVSThumb,Color.FromArgb(128,128,128)); extree1.ScrollHeight = 4; extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exHSBack,extree1.get_Background(exontrol.EXTREELib.BackgroundPartEnum.exVSBack)); extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exHSThumb,extree1.get_Background(exontrol.EXTREELib.BackgroundPartEnum.exVSThumb)); extree1.set_Background(exontrol.EXTREELib.BackgroundPartEnum.exScrollSizeGrip,extree1.get_Background(exontrol.EXTREELib.BackgroundPartEnum.exVSBack)); extree1.EndUpdate(); |
506 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "MAZDA"; exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXTREELib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXTREELib.FilterTypeEnum.exPattern; var_Column1.Filter = "AIR BAG"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); extree1.ApplyFilter(); extree1.EndUpdate(); |
505 |
How can I have a case-sensitive filter
extree1.BeginUpdate(); extree1.MarkSearchColumn = false; exontrol.EXTREELib.Columns var_Columns = extree1.Columns; exontrol.EXTREELib.Column var_Column = (var_Columns.Add("Car") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXTREELib.FilterTypeEnum.exFilter; var_Column.Filter = "Mazda"; exontrol.EXTREELib.Column var_Column1 = (var_Columns.Add("Equipment") as exontrol.EXTREELib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"; var_Column1.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilterDoCaseSensitive | exontrol.EXTREELib.FilterTypeEnum.exPattern; var_Column1.Filter = "Air Bag"; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag"); var_Items.set_CellCaption(var_Items.AddItem("Toyota"),1,"Air Bag,Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Ford"),1,"Air condition"); var_Items.set_CellCaption(var_Items.AddItem("Nissan"),1,"Air Bag,ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"Air Bag, ABS,ESP"); var_Items.set_CellCaption(var_Items.AddItem("Mazda"),1,"ABS,ESP"); extree1.ApplyFilter(); extree1.EndUpdate(); |
504 |
I have several columns, but noticed that the filter is using AND between columns, but I need OR clause for filtering. Is it possible
extree1.BeginUpdate(); extree1.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Item") as exontrol.EXTREELib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.Filter = "Child 1"; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exFilter; exontrol.EXTREELib.Column var_Column1 = (extree1.Columns.Add("Date") as exontrol.EXTREELib.Column); var_Column1.DisplayFilterButton = true; var_Column1.DisplayFilterPattern = false; var_Column1.DisplayFilterDate = true; var_Column1.FilterList = exontrol.EXTREELib.FilterListEnum.exShowExclude | exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox | exontrol.EXTREELib.FilterListEnum.exNoItems; var_Column1.Filter = Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")).ToString(); var_Column1.FilterType = exontrol.EXTREELib.FilterTypeEnum.exDate; extree1.FilterCriteria = "%0 or %1"; extree1.set_Description(exontrol.EXTREELib.DescriptionTypeEnum.exFilterBarOr,"<font ;18><fgcolor=FF0000>or</fgcolor></font>"); extree1.set_Description(exontrol.EXTREELib.DescriptionTypeEnum.exFilterBarAnd,"<font ;18><fgcolor=FF0000>and</fgcolor></font>"); exontrol.EXTREELib.Items var_Items = extree1.Items; int h = var_Items.AddItem("Root 1"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1"),1,Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2"),1,Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); extree1.ApplyFilter(); extree1.EndUpdate(); |
503 |
Is it possible exclude the dates being selected in the drop down filter window
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Date") as exontrol.EXTREELib.Column); var_Column.SortType = exontrol.EXTREELib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowExclude | exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox | exontrol.EXTREELib.FilterListEnum.exNoItems; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); extree1.EndUpdate(); |
502 |
How can I display a calendar control inside the drop down filter window
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Date") as exontrol.EXTREELib.Column); var_Column.SortType = exontrol.EXTREELib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox | exontrol.EXTREELib.FilterListEnum.exNoItems; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); extree1.EndUpdate(); |
501 |
Is it possible to include the dates as checkb-boxes in the drop down filter window
extree1.BeginUpdate(); exontrol.EXTREELib.Column var_Column = (extree1.Columns.Add("Dates") as exontrol.EXTREELib.Column); var_Column.SortType = exontrol.EXTREELib.SortTypeEnum.SortDate; var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = true; var_Column.DisplayFilterDate = true; var_Column.FilterList = exontrol.EXTREELib.FilterListEnum.exShowFocusItem | exontrol.EXTREELib.FilterListEnum.exShowCheckBox; var_Column.Filter = "to 12/27/2010"; var_Column.FilterType = exontrol.EXTREELib.FilterTypeEnum.exDate; exontrol.EXTREELib.Items var_Items = extree1.Items; var_Items.AddItem(Convert.ToDateTime("12/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/28/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/30/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.AddItem(Convert.ToDateTime("12/31/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); extree1.ApplyFilter(); extree1.EndUpdate(); |